<template>
  <div class="classroom">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="班级管理" name="1">
        <manage v-if="activeName === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="班级推荐" name="2">
        <recommend v-if="activeName === '2'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>

  import Manage from './components/classroom/manage'
  import Recommend from './components/classroom/recommend'

  export default {
    components: {
      Recommend,
      Manage
    },
    data() {
      return {
        activeName: '1'
      }
    },
    methods: {
      tabClick() {
        console.log('tab')
      }
    }
  }
</script>

<style lang="scss" scoped>
  .classroom {
    padding: 0 20px;
  }
</style>

